
package com.sc.nft.entity.vo;


import com.sc.nft.dto.AdminShareProfitCollectDetailsDTO;
import com.sc.nft.dto.AdminShareProfitCollectDetailsPointsDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class AdminShareProfitCollectPointsVO {



    @ApiModelProperty(value = "DAO名称")
    private String daoName;

    @ApiModelProperty(value = "藏品id")
    private Long collectionId;

    @ApiModelProperty(value = "藏品名称")
    private String collectionName;

    @ApiModelProperty(value = "熔炼总数")
    private Integer useCount;

    @ApiModelProperty(value = "销毁总数")
    private Integer destroyCount = 0;

    @ApiModelProperty(value = "熔炼总积分")
    private String ecologyPoints;

    @ApiModelProperty(value = "分享积分")
    private String shareProfitPoints;

    @ApiModelProperty(value = "平台分红池积分")
    private String platformDividePoints;

    @ApiModelProperty(value = "DAO分红池积分")
    private String daoDivideIntoPoints;

    @ApiModelProperty(value = "生态风控池积分")
    private String riskPoolPoints;

    @ApiModelProperty(value = "技术服务费积分")
    private String technicalServiceFeePoints;

    @ApiModelProperty(value = "DAO分账积分")
    private String daoAccountPoints;

    @ApiModelProperty(value = "服务中心分账积分")
    private String serviceCenterPoints;

    @ApiModelProperty(value = "系统没收积分")
    private String systemForfeiture;




    public void setEcologyPoints(BigDecimal ecologyPoints) {
        this.ecologyPoints = ecologyPoints.stripTrailingZeros().toPlainString();
    }

    public void setShareProfitPoints(BigDecimal shareProfitPoints) {
        this.shareProfitPoints = shareProfitPoints.stripTrailingZeros().toPlainString();
    }

    public void setPlatformDividePoints(BigDecimal platformDividePoints) {
        this.platformDividePoints = platformDividePoints.stripTrailingZeros().toPlainString();
    }

    public void setRiskPoolPoints(BigDecimal riskPoolPoints) {
        this.riskPoolPoints = riskPoolPoints.stripTrailingZeros().toPlainString();
    }

    public void setTechnicalServiceFeePoints(BigDecimal technicalServiceFeePoints) {
        this.technicalServiceFeePoints = technicalServiceFeePoints.stripTrailingZeros().toPlainString();
    }

    public void setServiceCenterPoints(BigDecimal serviceCenterPoints) {
        this.serviceCenterPoints = serviceCenterPoints.stripTrailingZeros().toPlainString();
    }

    public void setDto(AdminShareProfitCollectDetailsPointsDTO dto) {
        this.shareProfitPoints = dto.getShareProfitPoints().stripTrailingZeros().toPlainString();
        this.platformDividePoints = dto.getPlatformDividePoints().stripTrailingZeros().toPlainString();
        this.daoDivideIntoPoints = dto.getDaoDivideIntoPoints().stripTrailingZeros().toPlainString();
        this.riskPoolPoints = dto.getRiskPoolPoints().stripTrailingZeros().toPlainString();
        this.technicalServiceFeePoints = dto.getTechnicalServiceFeePoints().stripTrailingZeros().toPlainString();
        this.daoAccountPoints = dto.getDaoAccountPoints().stripTrailingZeros().toPlainString();
        this.systemForfeiture = dto.getSystemForfeiture().stripTrailingZeros().toPlainString();
    }
}
